home *** CD-ROM | disk | FTP | other *** search
/ Interactive Media Design Review 1999 / Interactive Media Design Review 1999.iso / mac / files / ID99MENU.DIR / 00001.ls next >
Encoding:
Text File  |  1999-04-29  |  5.9 KB  |  243 lines

  1. global learnedsizes, screenshotloc, screenshotwidth, screenshotheight, firstthumbnail, dots, jurorcomments, firstjuror, firstjurorhilite, firsttitle, firstbio, biogrid, creditsgrid, rollstep, rollvolume, bgmusic, jurorspeaking, firstjurorzoom, globalidvolume, goldbox, firstbigjuror, firstnamejuror, viewby, webpages, demos, currtitle, pathdel, demofolder, talkaboutbronze, IDCDPath, CDPath, shownqmessage, titlewidth, titleheight, qmessage
  2.  
  3. on prepareMovie
  4.   the idleLoadMode = 3
  5.   if voidp(IDCDPath) then
  6.     checkforproblems()
  7.   end if
  8.   talkaboutbronze = the optionDown
  9.   repeat with a = 1 to 1000
  10.     sprite(a).visible = 1
  11.   end repeat
  12.   if the platform contains "windows" then
  13.     pathdel = "\"
  14.   else
  15.     pathdel = ":"
  16.   end if
  17.   demofolder = IDCDPath & "allfiles" & pathdel
  18.   if voidp(bgmusic) then
  19.     bgmusic = demofolder & "bgmusic.aif"
  20.   end if
  21.   titlewidth = 177
  22.   titleheight = 10
  23.   learnedsizes = 0
  24.   screenshotloc = point(282, 162)
  25.   screenshotwidth = 267
  26.   screenshotheight = 217
  27.   firstthumbnail = 11
  28.   dots = 201
  29.   jurorcomments = value(field("juror comments"))
  30.   webpages = value(field("web pages"))
  31.   demos = value(field("demo files"))
  32.   firstjuror = 161
  33.   firstjurorhilite = 171
  34.   firstbio = 181
  35.   firstbigjuror = 201
  36.   firstnamejuror = 211
  37.   firsttitle = 111
  38.   biogrid = 158
  39.   creditsgrid = 60
  40.   rollstep = 16
  41.   rollvolume = 0
  42.   goldbox = 54
  43.   qmessage = 303
  44.   jurorspeaking = 0
  45.   firstjurorzoom = 191
  46.   globalidvolume = 200
  47.   set the volume of sound 1 to globalidvolume
  48.   if voidp(currtitle) then
  49.     currtitle = 0
  50.   end if
  51.   if voidp(viewby) then
  52.     viewby = "title"
  53.   end if
  54.   repeat with a = 1 to 10
  55.     sound stop a
  56.   end repeat
  57. end
  58.  
  59. on startMovie
  60.   if the shiftDown then
  61.     go("intro animation")
  62.   end if
  63. end
  64.  
  65. on stopjuror
  66.   sound stop 4
  67. end
  68.  
  69. on mouseUp
  70.   if the frame >= label("intro animation") then
  71.     go(1)
  72.   end if
  73. end
  74.  
  75. on godemo thedemo
  76.   if thedemo = EMPTY then
  77.     exit
  78.   end if
  79.   oldid = the itemDelimiter
  80.   the itemDelimiter = ":"
  81.   folderName = item 1 of thedemo
  82.   demoname = item 2 of thedemo
  83.   the itemDelimiter = oldid
  84.   wheredemois = demofolder & folderName
  85.   the searchPaths = [wheredemois]
  86.   sprite(qmessage).visible = not (shownqmessage = 1)
  87.   go("to demo")
  88.   repeat with a = 1 to 1000
  89.     sprite(a).visible = 1
  90.   end repeat
  91.   repeat with a = 1 to 10
  92.     sound stop a
  93.   end repeat
  94.   repeat with a = 1 to 10
  95.     set the volume of sound a to 255
  96.   end repeat
  97.   startTimer()
  98.   if not (shownqmessage = 1) then
  99.     repeat while the timer < 120
  100.       updateStage()
  101.     end repeat
  102.   end if
  103.   shownqmessage = 1
  104.   play movie demoname
  105. end
  106.  
  107. on enterFrame
  108.   if not soundBusy(1) then
  109.     sound playFile 1, bgmusic
  110.     bgmusic = demofolder & "bgmusic.aif"
  111.   end if
  112. end
  113.  
  114. on startbgmusic
  115.   bgmusic = demofolder & "bgmusic.aif"
  116.   sound playFile 1, bgmusic
  117. end
  118.  
  119. on keyDown
  120.   if "0123456789" contains the key then
  121.     globalidvolume = 27 * value(the key)
  122.   end if
  123.   if (the key = "q") and the commandDown then
  124.     set the exitLock to 0
  125.     go("get out")
  126.   end if
  127. end
  128.  
  129. on settextrender
  130.   repeat with a = 1 to 1000
  131.     if member(a).type = #text then
  132.       member(a).SaveBitmap = 1
  133.       member(a).PreRender = #CopyInk
  134.     end if
  135.   end repeat
  136. end
  137.  
  138. on redesign
  139.   repeat with a = 621 to 663
  140.     w = the number of words in the name of member a
  141.     bwmember = word w - 1 of the name of member a
  142.     bwmember = "titlecredit" && string(a - 620)
  143.     member(a).name = bwmember
  144.   end repeat
  145. end
  146.  
  147. on recolor
  148.   repeat with a = 531 to 573
  149.     bwmember = member(a).name
  150.     bwmember = "titlecredit" && string(a - 530)
  151.     member(a).name = bwmember
  152.   end repeat
  153. end
  154.  
  155. on randomj
  156.   j = []
  157.   repeat with a = 1 to 43
  158.     i = [random(3), random(4, 6)]
  159.     append(j, i)
  160.   end repeat
  161.   return j
  162. end
  163.  
  164. on settextcolors
  165.   repeat with a = 235 to 277
  166.     set the foreColor of member a to 0
  167.     member(a).backcolor = 255
  168.   end repeat
  169. end
  170.  
  171. on blastoff thesprite
  172.   repeat with a = 1 to 30
  173.     set the loc of sprite (dots + a - 1) to point(10000, 10000)
  174.   end repeat
  175.   updateStage()
  176.   theMember = the memberNum of sprite thesprite
  177.   cropper(theMember, the number of member "dot 1", 15, 2)
  178.   repeat with a = 1 to 30
  179.     set the loc of sprite (dots + a) to the loc of sprite thesprite
  180.   end repeat
  181.   sendAllSprites(#titlefly)
  182. end
  183.  
  184. on cropper mastercaster, firstcast, thecols, therows
  185.   idots = firstcast
  186.   cols = thecols
  187.   rows = therows
  188.   widthgap = integer(0.5 + (float(member(mastercaster).width) / cols))
  189.   heightgap = integer(0.5 + (float(member(mastercaster).height) / rows))
  190.   repeat with a = 1 to rows * cols
  191.     dotmember = idots + a - 1
  192.     member(dotmember).picture = member(mastercaster).picture
  193.     crop(member(dotmember), rect(((a mod cols) - 1) * widthgap, a / cols * heightgap, (((a mod cols) - 1) * widthgap) + widthgap, (a / cols * heightgap) + heightgap))
  194.   end repeat
  195. end
  196.  
  197. on Mac
  198.   return not (the platform contains "windows")
  199. end
  200.  
  201. on checkforproblems
  202.   the itemDelimiter = ","
  203.   if Mac() then
  204.     CDName = field("Mac CD Name")
  205.     it = CDName & ":ID99CHK:"
  206.     it = getNthFileNameInFolder(it, 1)
  207.     if it = EMPTY then
  208.       discproblem = 1
  209.     else
  210.       the searchPaths = [CDName, CDName & ":ALLFILES"]
  211.       IDCDPath = CDName & ":"
  212.     end if
  213.   else
  214.     here = the moviePath & "ID99CHK\"
  215.     if getNthFileNameInFolder(here, 1) <> EMPTY then
  216.       IDCDPath = the moviePath
  217.     else
  218.       if voidp(CDPath) then
  219.         CDPath = EMPTY
  220.       end if
  221.       theletters = char 1 of CDPath & "defghijklmnopqrstuvwxyz!"
  222.       repeat with a = 1 to the number of chars in theletters
  223.         driveletter = char a of theletters
  224.         if driveletter = "!" then
  225.           exit repeat
  226.         end if
  227.         it = driveletter & ":\ID99CHK\"
  228.         it = getNthFileNameInFolder(it, 1)
  229.         if it <> EMPTY then
  230.           exit repeat
  231.         end if
  232.       end repeat
  233.       if driveletter = "!" then
  234.         discproblem = 1
  235.       else
  236.         lowram = EMPTY
  237.         the searchPaths = [driveletter & ":\ALLFILES\"]
  238.         IDCDPath = driveletter & ":\"
  239.       end if
  240.     end if
  241.   end if
  242. end
  243.